package com.xiaozhengkeji.xiaozhengblog.base.service;

import org.springframework.stereotype.Service;
import javax.annotation.Resource;
import java.util.List;
import com.xiaozhengkeji.xiaozhengblog.base.mapper.ArticleClassEntityMapper;
import com.xiaozhengkeji.xiaozhengblog.base.entitys.ArticleClassEntity;
@Service
public class ArticleClassEntityService{

    @Resource
    private ArticleClassEntityMapper articleClassEntityMapper;

    
    public int deleteByPrimaryKey(Integer id) {
        return articleClassEntityMapper.deleteByPrimaryKey(id);
    }

    
    public int insert(ArticleClassEntity record) {
        return articleClassEntityMapper.insert(record);
    }

    
    public int insertSelective(ArticleClassEntity record) {
        return articleClassEntityMapper.insertSelective(record);
    }

    
    public ArticleClassEntity selectByPrimaryKey(Integer id) {
        return articleClassEntityMapper.selectByPrimaryKey(id);
    }

    
    public int updateByPrimaryKeySelective(ArticleClassEntity record) {
        return articleClassEntityMapper.updateByPrimaryKeySelective(record);
    }

    
    public int updateByPrimaryKey(ArticleClassEntity record) {
        return articleClassEntityMapper.updateByPrimaryKey(record);
    }

    
    public List<ArticleClassEntity> queryByAll(ArticleClassEntity articleClassEntity) {
        return articleClassEntityMapper.queryByAll(articleClassEntity);
    }

    
    public List<ArticleClassEntity> queryAllByArticleClass(String articleClass) {
        return articleClassEntityMapper.queryAllByArticleClass(articleClass);
    }

}
